﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface IOrganizationService
    {
        /// <summary>
        /// 获取组织机构基础数据
        /// </summary>
        /// <returns></returns>
        Task<List<OrganizationResponse>> GetBasicOrganizations();
        /// <summary>
        /// 获取组织机构列表
        /// </summary>
        /// <returns></returns>
        Task<List<OrganizationResponse>> Query();
        /// <summary>
        /// 获取id的组织机构详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<OrganizationResponse> Detail(long id);
        /// <summary>
        /// 组织机构保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(OrganizationSaveRequest request);
    }
}
